import request from '@/utils/request'

// 查询扶贫物资捐赠管理列表
export function listRuralPovertyMaterialsDonate(query) {
  return request({
    url: '/rural/RuralPovertyMaterialsDonate/list',
    method: 'get',
    params: query
  })
}

// 查询扶贫物资捐赠管理详细
export function getRuralPovertyMaterialsDonate(id) {
  return request({
    url: '/rural/RuralPovertyMaterialsDonate/' + id,
    method: 'get'
  })
}

// 新增扶贫物资捐赠管理
export function addRuralPovertyMaterialsDonate(data) {
  return request({
    url: '/rural/RuralPovertyMaterialsDonate',
    method: 'post',
    data: data
  })
}

// 修改扶贫物资捐赠管理
export function updateRuralPovertyMaterialsDonate(data) {
  return request({
    url: '/rural/RuralPovertyMaterialsDonate',
    method: 'put',
    data: data
  })
}

// 删除扶贫物资捐赠管理
export function delRuralPovertyMaterialsDonate(id) {
  return request({
    url: '/rural/RuralPovertyMaterialsDonate/' + id,
    method: 'delete'
  })
}


// 确认防疫物资已到货
export function confirmRuralPovertyMaterialsDonate(data) {
  return request({
    url: '/rural/RuralPovertyMaterialsDonate/confirm',
    method: 'put',
    data: data
  })
}
